//1:输入一个字符串，去掉非数字字符，把剩下的转换成整数，并输出，
// 比如AbcF2FHk30%$!,则结果是230
public class Work {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String str = in.next();
        String[] temp = str.split("");
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < temp.length; i++) {
            if (temp[i].matches("[0-9]")) {
                sb.append(temp[i]);
            }
        }
        System.out.println(sb.toString());
    }
}